home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
prog
/
atari
/
c
/
du_lib
/
menubar.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-07-10
|
591b
|
27 lines
/*
DU_LIB v2
Gem Window Management & Dialog Library
*/
/*=================================
GEM drop-down Menu Bar Handlers
=================================*/
#include "dulib.h"
/*===================================
Activate/Install a pull-down menu
===================================*/
short install_menu(short m)
{
short b;
OBJECT *menu_loc;
menu=m;
rsrc_gaddr(0,menu,&menu_loc);
do { graf_mkstate(&junk,&junk,&b,&junk); } while (b); // Don't call menu_bar() with the mouse button down or GEM crashes.
menu_bar(menu_loc,1);
return 0;
}